package com.book.mapper;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.book.entity.Book;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface BookMapper extends BaseMapper<Book> {
    @Select("SELECT * FROM book WHERE bname LIKE '%${keyword}%'")
    public List<Book> search(@Param("keyword") String keyword);
}
